import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: 给定一个数字，判定一个数字是否是素数
 * User: 15085202591
 * Date: 2022-10-31
 * Time: 10:17
 */
public class JudgePrime {
    public static void main(String[] args) {
        //输入数字
        Scanner scan= new Scanner(System.in);
        while (scan.hasNextInt()){
            int input=scan.nextInt();
            if(input == 1){
                System.out.println(input + "不是素数");
                continue;
            }
            int j;
            for (j = 2; j < input; j++) {
                if (input % j == 0) {
                    System.out.println(input + "不是素数");
                    break;
                }
            }
            if(j == input){
                System.out.println(input + "是素数");
            }

        }
    }
}
